<?php
use \GatewayWorker\Lib\Gateway;
class WebRoute
{
    public static function run($client_id,$data)
    {


        switch ($data->type){
            case "login"://登录
                Login::user_login($client_id,$data);
                break;
            case "send_message":
                Talking::chat($client_id,$data);
                break;
            default:
                Gateway::sendToClient($client_id, "测试错误");
        }
    }
}
